Mastering PHP 7 by Ajzele Branko

Mastering PHP 7 by Ajzele Branko

Author:Ajzele, Branko [Ajzele, Branko]
Language: eng
Format: azw3, epub
Tags: COM021000 - COMPUTERS / Databases / General, COM060160 - COMPUTERS / Web / Web Programming, COM051400 - COMPUTERS / Programming Languages / PHP
Publisher: Packt Publishing
Published: 2017-06-26T16:00:00+00:00


sudo npm install -g serverless

serverless --version

With the serverless framework now installed, we need to set the console environment variables: AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. These get used by serverless during deploy:

export AWS_ACCESS_KEY_ID=<--AWS_ACCESS_KEY_ID-->

export AWS_SECRET_ACCESS_KEY=<--AWS_SECRET_ACCESS_KEY-->

We can now address the bits and pieces related to PHP. The official serverless framework example uses an AWS lambda that runs a PHP function, which can be found at https://github.com/ZeroSharp/serverless-php. We can install it via the following console command:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.